<?php
// +----------------------------------------------------------------------
// | BB [ BB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024~2034 https://www.bobahappy.com.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: luowei Team <luowei@bobahappy.com>
// +----------------------------------------------------------------------
use think\facade\Route;

/**
 * ${tableComment} 相关路由
 */
Route::group('${shortName}', function () {
	//列表
    Route::get('list', 'v1.platform.${tableClass}Controller/lst')->option(['real_name' => '列表']);
	//添加
    Route::post('save', 'v1.platform.${tableClass}Controller/save')->option(['real_name' => '保存']);
	//删除
    Route::delete('del/:id', 'v1.platform.${tableClass}Controller/del')->option(['real_name' => '删除']);
    <#if formWay == 0>
    //添加修改分组表单
    Route::get('add/:id', 'v1.platform.${tableClass}Controller/create')->option(['real_name' => '添加修改分组表单']);
	</#if>
})->middleware([
    \app\http\middleware\AllowOriginMiddleware::class,
    \app\adminapi\middleware\AdminAuthTokenMiddleware::class,
    \app\adminapi\middleware\AdminCheckRoleMiddleware::class,
    \app\adminapi\middleware\AdminLogMiddleware::class
]);
